/* ******************************************************************
 * This file is part of the escal project and distributed under the
 * terms of the GNU General Public License Version 3
 * Copyright (C) 2008 Epocher (xijiaosdq@gmail.com)
 * See COPYING file for licensing information.
 *******************************************************************/

#include "log_manager.h"

void LogManager::writeLogDocument(QTextCursor *cursor, QString text1,
	QString text2)
{
	if(text1==QString()){
		cursor->insertText(QString("**********  %2\n")
			.arg(text2));
	}
	else{
		cursor->insertText(QString("[%1]  %2\n")
			.arg(text1)
			.arg(text2));
	}
}

